|
If you can't view the Datasheet, Please click here to try to view without PDF Reader . |
|
Datasheet File OCR Text: |
september 2012 doc id 022706 rev 2 1/14 AN4041 application note apwlink+ microphone usb demons tration boards based on the mp34dt01, mp45dt02, or mp34db01 introduction the purpose of this application note is to give a brief description of the apwlink+ microphone usb demonstration boards from stmicroelectronics. these boards host the microcontroller stm32f107rc and either the mp45dt02, mp34dt01 (top-port digital microphones) or the mp34db01 (bottom-port digital microphone). figure 1 shows the capability of the board to host these microphones. these microphones are analog-to-digital transducers, in other words, they are able to sense sound pressure and convert this signal to a digi tal signal using the pulse-density modulation (pdm) technique. the stm32 microcontroller decodes the pdm signal coming from the microphones and streams the audio via the usb. this document will provide a brie f description of the software that decodes the pdm signal and also information about the hardware as well as simple steps to use the boards. ordering information for these boards can be found in appendix c on page 12 . figure 1. apwlink+ demonstration board 5 p q w j f x # p u u p n w j f x ' v m m c p b s e w j f x 5 p q w j f x # p u u p n w j f x . j d s p q i p o f t f d u j p o [ p p n w j f x . 1 % 5 . 1 % 5 . 1 % # www.st.com
contents AN4041 2/14 doc id 022706 rev 2 contents 1 software description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 2 hardware description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 3 getting started . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 appendix a schematic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 appendix b layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 appendix c ordering information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 4 revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 AN4041 list of tables doc id 022706 rev 2 3/14 list of tables table 1. microphone supply voltage range . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 table 2. l/r channel selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 table 3. ordering information for demonstration boards . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 table 4. document revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 list of figures AN4041 4/14 doc id 022706 rev 2 list of figures figure 1. apwlink+ demonstration board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 figure 2. dsp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 figure 3. microphone usb demonstration board (block diagram) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 figure 4. windows message . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 figure 5. computer management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 figure 6. recording properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 figure 7. schematic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 figure 8. board layout - top view . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 figure 9. board layout - bottom view . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 AN4041 software description doc id 022706 rev 2 5/14 1 software description the digital signal processing (dsp) consists of the simple flow depicted in the figure below. figure 2. dsp the pdm signal from the microphone is filtered and decimated in order to obtain a sound signal at the required frequency and resolution. the loaded firmware implements a filter pipeline that has been designed as two filtering-decimation stages. assuming an input frequency of 3.072 mhz and a desired output frequency of 48 khz, the filter stages are configured to implement a decimation factor of 64. the final gain of the pipeline is therefore g 1 = 7.8125. as a result, the output of the filter pipeline is a 16-bit pulse- code modulated (pcm) signal. for further information, please refer to application note an3998, ?pdm audio software decoding on stm32 microcontrollers? available on www.st.com . hardware description AN4041 6/14 doc id 022706 rev 2 2 hardware description the board is a sound card automatically recognized by the pc as an audio device. the connection is done through the usb cable which also supplies the board and then streams the audio collected from the microphones to the pc. figure 3. microphone usb demonstration board (block diagram) supply section the supply section of the board is made up of two voltage regulators that step down the 5 v of the usb connection to 3.3 v and 2.5 v. the solder jumper j4 gives the user the possibility to choose the desired supply voltage.the digi tal microphone voltage ranges are given in the following table. we recommend using 2.5 v to avoid supplying the microphone with a voltage that is too high. for instance, the mp34dt01 cannot support a supply voltage of 3.3 v. microphone section regarding the microphone section, the mems outputs are a pdm signal, which is a high- frequency stream (1 to 3.25 mhz) of 1-bit digital samples. according to the application hints given in the datasheets (available on www.st.com ), the microphone can be used in single- channel configuration or stereo configuration by setting the lr pin. this pin sets the validity table 1. microphone supply voltage range part number min. typ. max. unit mp45dt02 1.64 1.8 3.6 v mp34db01 1.64 1.8 3.6 v mp34dt01 1.64 1.8 3.6 v sda scl lrck bick sdo12 sdo34 sdo56 stm32f107rc 12.288 mhz sel l/r clk vdd out gnd apwlink connector i 2 s spi i 2 c usb i/f 8 mhz l/r clk vdd out gnd sel regulator 2.5v regulator 3.3v sel 5v mic_vdd c_vdd usb connector 2.5v 3.3v osc mic_vdd j4 j1 j5 spi_ck apwlink+ timer mic_ck mic_ck mic_data12 mic_vdd d1 d2 d3 d4 d5 mic_vdd mic_vdd c_vdd AN4041 hardware description doc id 022706 rev 2 7/14 of the output data on the high level of the clock or on the low level, refer to the following table. on this board the microphones are used in stereo configuration, so the two digital outputs are shorted (mic_data12, refer to the schematic) and the two mems lr pins must be set one to gnd and the other one to vdd. on the board, the resistors r1 and r13 have already set the lr pin of the microphones. in order to change the mems polarity, the user must unsolder these resistors and manually set the lr pin using the solder jumper j1 and j5. note that the pcb section mounting the mems microphones is detachable. this option has been implemented in order to let the user put the microphones in the desired position (i.e. for display applications in which the microphones are placed at the edges of the display). microcontroller the stm32f107rc microcontroller simultaneously works as a pdm interface and also supports the usb audio streaming. the board hosts two external clocks, the 12.288 mhz and 8 mhz. the first one serves to clock an internal timer for generating both mic_ck and spi_ck. the 8 mhz is the microcontroller?s external clock connected to the osc_in osc_out pins. the stm32 samples the microphone?s output data by using the synchronous serial port (spi1). the microphone signal mic_data12 is a stereophonic signal and the spi must be able to sample both channels. since mic_data12 is synchronous with its clock, spi_ck must be doubled. summarizing, the timer generates: -mic_ck = 3.072 mhz -spi_ck = 6.144 mhz finally, the usb interface allows streaming t he audio on the usb peripheral making this demonstration bo ard compatible with any laptop or deskt op. this streaming capability allows using any acoustic tool for the sound acquisition done by stmicroelectronics? mems microphones. the demonstrat ion board also has the po ssibility to manage the microcontroller registers using the i 2 c bus. another important stm32 peripheral that is used is the i 2 s which allows exporting the audio in the most commonly used digital format. this allows the user to test the signal using audio testing equipment such as audio precision. all these signals can be monitored on the apwlink connector. leds d1-d5 the status of the board is indicated by the following leds: d1 on: usb enumeration successful d2 on: firmware correctly downloaded d3 off: firmware correctly downloaded d4: not soldered d5 on: board supplied table 2. l/r channel selection l/r clock low clock high gnd data valid high impedance vdd high impedance data valid getting started AN4041 8/14 doc id 022706 rev 2 3 getting started the demonstration board is very user-friendly and is ready to use. after connecting the micro usb cable to the laptop or desktop, the message shown in figure 4 below appears. this is possible since the firmware loaded into the stm microcontroller allows the operating system to recognize the peripheral as an audio device. the version (in this case v1.0) indicates the firmware loaded. the version v1.0 refers to a software decimator of 48 khz as the sampling frequency and 64 as the decimator index. figure 4. windows message the user can also check if the usb demonstrat ion board is recognized as an audio device by accessing the computer management and then clicking on the device manager. the demonstration board appears as a u sb audio device in the list below. figure 5. computer management AN4041 getting started doc id 022706 rev 2 9/14 since the firmware is able to let the operating system recognize the peripheral as an audio device, it is possible to set the "st 2uphone s evb_v1.0" evaluation bo ard as the recording device. in this configuration, the demonstration board can be used to record the input of general-purpose acoustic tools. figure 6. recording properties AN4041 schematic doc id 022706 rev 2 10/14 appendix a schematic figure 7. schematic AN4041 layout doc id 022706 rev 2 11/14 appendix b layout figure 8. board layout - top view figure 9. board layout - bottom view ordering information AN4041 12/14 doc id 022706 rev 2 appendix c ordering information the apwlink+ demonstration boards mentioned in this document are available on www.st.com referenced by the ordering codes listed below. table 3. ordering information for demonstration boards order code board description steval-mki116v1 mems microphone demonstratio n board based on the mp34db01 and stm32f107rc steval-mki117v1 mems microphone demonstration board based on the mp34dt01 and stm32f107rc steval-mki117v2 mems microphone demonstration board based on the mp45dt02 and stm32f107rc AN4041 revision history doc id 022706 rev 2 13/14 4 revision history table 4. document revision history date revision changes 30-jan-2012 1 initial release 06-sep-2012 2 updated maximum supply voltage for mp34dt01 in ta b l e 1 added appendix c: ordering information AN4041 14/14 doc id 022706 rev 2 please read carefully: information in this document is provided solely in connection with st products. stmicroelectronics nv and its subsidiaries (?st ?) reserve the right to make changes, corrections, modifications or improvements, to this document, and the products and services described he rein at any time, without notice. all st products are sold pursuant to st?s terms and conditions of sale. purchasers are solely responsible for the choice, selection and use of the st products and services described herein, and st as sumes no liability whatsoever relating to the choice, selection or use of the st products and services described herein. no license, express or implied, by estoppel or otherwise, to any intellectual property rights is granted under this document. i f any part of this document refers to any third party products or services it shall not be deemed a license grant by st for the use of such third party products or services, or any intellectual property contained therein or considered as a warranty covering the use in any manner whatsoev er of such third party products or services or any intellectual property contained therein. unless otherwise set forth in st?s terms and conditions of sale st disclaims any express or implied warranty with respect to the use and/or sale of st products including without limitation implied warranties of merchantability, fitness for a parti cular purpose (and their equivalents under the laws of any jurisdiction), or infringement of any patent, copyright or other intellectual property right. unless expressly approved in writing by two authorized st representatives, st products are not recommended, authorized or warranted for use in milita ry, air craft, space, life saving, or life sustaining applications, nor in products or systems where failure or malfunction may result in personal injury, death, or severe property or environmental damage. st products which are not specified as "automotive grade" may only be used in automotive applications at user?s own risk. resale of st products with provisions different from the statements and/or technical features set forth in this document shall immediately void any warranty granted by st for the st product or service described herein and shall not create or extend in any manner whatsoev er, any liability of st. st and the st logo are trademarks or registered trademarks of st in various countries. information in this document supersedes and replaces all information previously supplied. the st logo is a registered trademark of stmicroelectronics. all other names are the property of their respective owners. ? 2012 stmicroelectronics - all rights reserved stmicroelectronics group of companies australia - belgium - brazil - canada - china - czech republic - finland - france - germany - hong kong - india - israel - ital y - japan - malaysia - malta - morocco - philippines - singapore - spain - sweden - switzerland - united kingdom - united states of america www.st.com |
Price & Availability of AN4041 |
|
|
All Rights Reserved © IC-ON-LINE 2003 - 2022 |
[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy] |
Mirror Sites : [www.datasheet.hk]
[www.maxim4u.com] [www.ic-on-line.cn]
[www.ic-on-line.com] [www.ic-on-line.net]
[www.alldatasheet.com.cn]
[www.gdcy.com]
[www.gdcy.net] |